import { developmentUrl } from "../config/env";
import request from "../config/axios";
export const MenuManagementInterface = (data) => request({
    url: `${developmentUrl}/menu/list`,
    method: "GET"
})
export const DepartmentManagementlist = (data) => request({
    url: `${developmentUrl}/dept/list`,
    method: "GET"
})
export const ParameterManagementlist = (data) => request({
    url: `${developmentUrl}/cfg/list?page=1&limit=20`,
    method: "GET"
})
export function list() {
    return request({
      url: `${developmentUrl}/dept/list`,
      method: 'get',
    })
  }
  
  export function save(params) {
    return request({
      url: `${developmentUrl}/dept`,
      method: 'post',
      params: params
    })
  }
  
  export function del(id) {
    return request({
      url: `${developmentUrl}/dept`,
      method: 'delete',
      params: {
        id: id
      }
    })
  }
  